package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author: qiyr
 * @date: 2022/4/25 10:08
 * @description: 风险监测-股票质押回购每日信息（自有资金）实体主键
 */
public class RiskDailyStockRepoPropId implements Serializable {

    private static final long serialVersionUID = 1L;
    private Integer id;
    private Date date;

    public RiskDailyStockRepoPropId() {
        super();
    }

    public RiskDailyStockRepoPropId(Integer id, Date date) {
        super();
        this.id = id;
        this.date = date;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date bizDate) {
        this.date = bizDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        RiskDailyStockRepoPropId that = (RiskDailyStockRepoPropId) o;
        return Objects.equals(id, that.id) && Objects.equals(date, that.date);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, date);
    }
}
